package com.rb.domain;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;

/**
 * Created by Brooks on 2014/5/7.
 */
@Entity
public class 微信验证 {
    private String id;
    private String accessToken;
    private Timestamp 查询时间;

    @Id
    @Column(name = "id")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "AccessToken")
    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    @Basic
    @Column(name = "查询时间")
    public Timestamp get查询时间() {
        return 查询时间;
    }

    public void set查询时间(Timestamp 查询时间) {
        this.查询时间 = 查询时间;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        微信验证 微信验证 = (微信验证) o;

        if (accessToken != null ? !accessToken.equals(微信验证.accessToken) : 微信验证.accessToken != null) return false;
        if (id != null ? !id.equals(微信验证.id) : 微信验证.id != null) return false;
        if (查询时间 != null ? !查询时间.equals(微信验证.查询时间) : 微信验证.查询时间 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (accessToken != null ? accessToken.hashCode() : 0);
        result = 31 * result + (查询时间 != null ? 查询时间.hashCode() : 0);
        return result;
    }
}
